package com.yiyun.blog.service;

import com.yiyun.blog.vo.Result;
import com.yiyun.blog.vo.params.ArticleParam;
import com.yiyun.blog.vo.params.PageParams;
import org.springframework.stereotype.Service;

/**
 * @author Bao
 * @create 2022-01-01-19:26
 */
public interface ArticleService {


    /**
     * 分页查询 文章列表
     *
    */
    Result listArticle(PageParams pageParams);

    //最热文章
    Result hotArticle(int limit);

    //最新文章
    Result newArticles(int limit);

    //文章归档
    Result listArchives();

    //查询文章详情
    Result findArticleById(Long articleId);

    // 发布文章
    Result publishArticle(ArticleParam articleParam);

    // 搜索文章
    Result searchArticle(ArticleParam articleParam);
}
